package com.dazzle.system.dao;
import javax.annotation.Resource;

import org.junit.Test;
import org.springframework.test.annotation.Rollback;

import com.dazzle.BaseTestCase;
import com.dazzle.system.dao.SysUserDao;
import com.dazzle.system.entity.SysUser;

public class SysUserDaoTestCase extends BaseTestCase {
	@Resource
	private SysUserDao dao;
	
	@Test
	@Rollback(false)
	public void add(){		
		for(int i=0;i<1000;i++){
			SysUser user = new SysUser();
			user.setFirstName("sean-"+i);
			user.setLastName("li-"+i);
			user.setPassword("123456");
			user.setUserName("sean-admin-"+i);
			dao.save(user);
		}
	}
}